package com.kuangstudy.service;

import com.kuangstudy.domain.MeetingPub;
import com.kuangstudy.domain.User;

/**
 * @author panghu
 * @version 1.0.0
 * @createTime 2022年08月12日 22:27:00
 * @Description
 */
public class MeetingServiceImpl implements MeetingService {

    private UserService userService;

    @Override
    public MeetingPub getMeetingById(String pcode) {
        MeetingPub meetingPub = new MeetingPub();
        meetingPub.setId(2000L);
        meetingPub.setPcode(pcode);
        meetingPub.setPtitle("联想levio3.0发布会");
        meetingPub.setPdesc("加油，奥里给啊!!");

        // 通过会议编号 - 查询用户信息 远程调用
        User user = userService.getUserByUserId(1000L);
        meetingPub.setUser(user);

        return meetingPub;
    }


}
